<?php

class User extends CI_Model{
    function __construct() {
        parent::__construct();
    }
    function check_user() {
        $this->load->library('session');
        $session_data=$this->session->userdata('login_data');
        if ($session_data!=NULL && $session_data['type']==2060) return TRUE;
        return FALSE;
    }
}

